/***************************************************************************
 *   Copyleft 2006-2007 by												   *
 *	 Iwanicki Krzysztof													   *
 *   <gamma.mini.pw.edu.pl/~iwanickik>									   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 ***************************************************************************/
#include "./InputManager.h"
#include "../Engine3D.h"

/**************************************************************
* Constructors                                                *
***************************************************************/
InputManager::InputManager(const InputManager& manager) {
	mObject = manager.mObject;
	::SetCursor(::LoadCursor(cNull, IDC_ARROW));
}

InputManager::~InputManager() {
}    
/**************************************************************
* Operators                                                   *
***************************************************************/


/**************************************************************
* Other helpful functions                                     *
***************************************************************/
cVoid InputManager::OnLeftMouseDown(cPoint point, Engine3D* engine) {
	mLBDownHit = point;
	mLBDown = true;
}

cVoid InputManager::OnRightMouseDown(cPoint point, Engine3D* engine) {
	mRBDownHit = point;
	mRBDown = true;
}

cVoid InputManager::OnLeftMouseUp(cPoint point, Engine3D* engine) {
	mLBUpHit = point;
	mLBDown = false;
}

cVoid InputManager::OnRightMouseUp(cPoint point, Engine3D* engine) {
	mRBUpHit = point;
	mRBDown = false;
}

Object3D* InputManager::GetObject() {
	return mObject;
}